/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package com.lifesting.wfs.runtime;

import com.lifesting.wfs.model.ProcessDefinition;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Process Instance</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link com.lifesting.wfs.runtime.ProcessInstance#getDefinition <em>Definition</em>}</li>
 *   <li>{@link com.lifesting.wfs.runtime.ProcessInstance#getRootToken <em>Root Token</em>}</li>
 * </ul>
 * </p>
 *
 * @see com.lifesting.wfs.runtime.RuntimePackage#getProcessInstance()
 * @model
 * @generated
 */
public interface ProcessInstance extends EObject {
	/**
	 * Returns the value of the '<em><b>Definition</b></em>' reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Definition</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Definition</em>' reference.
	 * @see #setDefinition(ProcessDefinition)
	 * @see com.lifesting.wfs.runtime.RuntimePackage#getProcessInstance_Definition()
	 * @model
	 * @generated
	 */
	ProcessDefinition getDefinition();

	/**
	 * Sets the value of the '{@link com.lifesting.wfs.runtime.ProcessInstance#getDefinition <em>Definition</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Definition</em>' reference.
	 * @see #getDefinition()
	 * @generated
	 */
	void setDefinition(ProcessDefinition value);

	/**
	 * Returns the value of the '<em><b>Root Token</b></em>' containment reference.
	 * It is bidirectional and its opposite is '{@link com.lifesting.wfs.runtime.Token#getProcessInstance <em>Process Instance</em>}'.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Root Token</em>' containment reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Root Token</em>' containment reference.
	 * @see #setRootToken(Token)
	 * @see com.lifesting.wfs.runtime.RuntimePackage#getProcessInstance_RootToken()
	 * @see com.lifesting.wfs.runtime.Token#getProcessInstance
	 * @model opposite="processInstance" containment="true"
	 * @generated
	 */
	Token getRootToken();

	/**
	 * Sets the value of the '{@link com.lifesting.wfs.runtime.ProcessInstance#getRootToken <em>Root Token</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Root Token</em>' containment reference.
	 * @see #getRootToken()
	 * @generated
	 */
	void setRootToken(Token value);

} // ProcessInstance
